package com.qhhc.service;

import com.qhhc.entity.CarInspection;
import java.util.List;

public interface CarInspectionService {
    // 获取所有检查记录
    List<CarInspection> getAllInspections();
    
    // 根据ID获取检查记录
    CarInspection getInspectionById(Long inspectionId);
    
    // 根据车辆ID获取检查记录
    List<CarInspection> getInspectionsByCarId(Long carId);
    
    // 根据检查员获取检查记录
    List<CarInspection> getInspectionsByInspector(String inspector);
    
    // 根据结果获取检查记录
    List<CarInspection> getInspectionsByResult(String result);
    
    // 添加检查记录
    boolean addInspection(CarInspection inspection);
    
    // 更新检查记录
    boolean updateInspection(CarInspection inspection);
    
    // 删除检查记录
    boolean deleteInspection(Long inspectionId);
    
    // 根据车辆ID删除检查记录
    boolean deleteInspectionsByCarId(Long carId);
    
    // 根据条件查询检查记录
    List<CarInspection> getInspectionsByCondition(CarInspection inspection);
} 